package com.Login.Service;

import com.Pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by XingYang on 2019/3/1.
 */

public interface LoginService {
    public User getUser(String username);

    public List<User> getAllUser();

    public User getUserById(String uid);
    /**
     * 从role表中获取角色数据
     */
    public PageInfo getRolesInfByUid(String uid,int pageNum,int pageSize);

    public List<String> getRolesByUid(String uid);

    public List<String> getPowersByUid(String uid);

    public List<String> getPowersByRid(String rid);

    public Map getRoleInfByRid(String rid);

    public List<Map> getAllPowers();

    public List<Map<String,String>> getPermissionConfig();

    public void addUser(User user);
    public boolean refreshUser(String username);

    public void addRole(Map map);

    public boolean modifyRole(Map map);

    public int delRole(String rid);

    public int disableRoleByRId(String Rid);

    public int enableRoleByRId(String Rid);

    public List<Map> queryManagerByMainId(String mainaccount);

    public int delRedisKey(String key);



}
